<?php
//路由规则配置
return array(
    'vote/:id\d/:key' => 'Home/Vote/detail',
    'vote/:id\d' => 'Home/Vote/detail',
    'vote' => 'Home/Vote/index',
);